<?php

namespace Part06_DecorationMode\Code3;

class ConcreteDecoratorB extends Decorator
{

    public function Operation()
    {
        parent::Operation();
        echo "具体装饰对象B的操作\n";
        $this->func();
    }

    private function func()
    {
        echo "B类独有的方法。。\n";
    }
}